//
//  ByBaseViewModel.h
//  beibei_ios
//
//  Created by hebidu on 16/4/16.
//  Copyright © 2016年 hebidu. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ByNetBaseResult.h"

@protocol ByNetDelegate <NSObject>

@required
- (void)requestSuccess:(ByNetBaseResult *)result;
@optional
- (void)requestFailure:(ByNetBaseResult *)result;

@end

/** view model 基类 */
@interface ByBaseViewModel : NSObject

@property (nonatomic, copy) void(^defaultFail)(ByNetBaseResult *result);
@property (nonatomic, strong) id<ByNetDelegate> delegate;

@end
